package time;

import javax.swing.JOptionPane;
import javax.swing.Timer;

public class PrintTime
{
   public static void main(String[] args)
   {
     final int DELAY = 1000;
     
     TimeListener time = new TimeListener();
     
     Timer timer = new Timer(DELAY, time);
     timer.start();
     
     JOptionPane.showMessageDialog(null, "Quit?");
     System.exit(0);
     
     
   }

}
